package excption.work;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class test2 {
    public static void main(String[] args) throws Exception {
        FileInputStream fis=new FileInputStream("fos.txt");
        InputStreamReader isr=new InputStreamReader(fis, StandardCharsets.UTF_8);
        BufferedReader br=new BufferedReader(isr);
        String b;
        while((b=br.readLine())!=null){
            System.out.println(b);
        }
        br.close();
    }
}
